package android.activities;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class DroidTravelerActivity extends TabActivity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Resources res = getResources();
	    TabHost tabHost = getTabHost();
	    TabHost.TabSpec spec;
	    Intent intent;
	    
	    intent = new Intent().setClass(this, CourseActivity.class);
	    
	    spec = tabHost.newTabSpec("course").setIndicator("Course", res.getDrawable(R.drawable.ic_tab_course)).setContent(intent);
	    tabHost.addTab(spec);
	    
	    intent = new Intent().setClass(this, GoogleMapsActivity.class);
	    spec = tabHost.newTabSpec("map").setIndicator("Map", res.getDrawable(R.drawable.ic_tab_maps)).setContent(intent);
	    tabHost.addTab(spec);

	    intent = new Intent().setClass(this, SocialActivity.class);
	    spec = tabHost.newTabSpec("social").setIndicator("Social", res.getDrawable(R.drawable.ic_tab_social)).setContent(intent);
	    tabHost.addTab(spec);

	    tabHost.setCurrentTab(0);
    }
}